package com.nercl.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Dept implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer depno;
	private String depname;
	private Set emps = new HashSet(0);
	
	public Dept() {
	}
	
	public Dept(Integer depno) {
		this.depno = depno;
	}
	
	public Dept(Integer depno, String depname, Set emps) {
		this.depno = depno;
		this.depname = depname;
		this.emps = emps;
	}

	public Integer getDepno() {
		return depno;
	}

	public void setDepno(Integer depno) {
		this.depno = depno;
	}

	public String getDepname() {
		return depname;
	}

	public void setDepname(String depname) {
		this.depname = depname;
	}

	public Set getEmps() {
		return emps;
	}

	public void setEmps(Set emps) {
		this.emps = emps;
	}

	@Override
	public String toString() {
		return "Dept [depno=" + depno + ", depname=" + depname + ", emps=" + emps + "]";
	}
	
}
